/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package giuliani_mapelli_marocco.enumerations;

/**
 * It represents the message type used to show errors or other messages.
 * Every message type has an attribute messageContent
 */
public enum InternalMessageType {
    NO_ERRORS ("No errors found"),
    TYME_INCONSISTENCY ("Time inconsistency found with the following event(s): "),
    END_BEFORE_START ("An event cannot end before starting"),
    START_IN_THE_PAST ("An event cannot start in the past"),
    USER_ALREADY_INVITED ("This user has been already invited"),
    USER_ALREADY_PARTICIPANT ("This user is already participating to the event"),
    INVITED_YOURSELF("You cannot invite yourself"), 
    INVITED_USER_DOES_NOT_EXISTS("The selected user does not exists"),
    MODIFY_EVENT_SUCCESSFUL("Event successfully modified"),
    CANNOT_DELETE_PARTICIPATION("You cannot delete your participation"),
    CANNOT_ACCEPT_INVITATION("You cannot accept your invitation"),
    INVITATION_ACCEPTED("You have accepted the invitation"),
    CANNOT_ACCEPT_INVITATION_TIME("You cannot accept the invitation. Time inconsistency found with the following event(s): "),
    EVENT_ALREADY_STARTED("You cannot modify an event already started"),
    USERNAME_ALREADY_USED("This username is already in use, please choose another one"),
    EMAIL_ALREADY_USED("This email address is already in use, please choose another one"),
    PARTICIPATION_CANCELLED("You have successfully withdrawn your participation to the event"),
    IMPORT_SUCCESSFUL("Calendar successfully imported"),
    IMPORT_FAILED("Import failed");
    
    private final String messageContent;
    
    private InternalMessageType(String error) {
        this.messageContent = error;
    }
    
    /**
     * Getter of the messageContent
     * @return the string representing the messageContent
     */
    public String getMessageContent() {
        return messageContent;
    }
}